<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 类型管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo base_url('application/views/styles/general.css');?>" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('application/views/styles/main.css');?>" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="<?php echo site_url('admin/goodstype/add')?>">新建商品类型</a></span>
<span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 商品类型 </span>
<div style="clear:both"></div>
</h1>

<form method="post" action="" name="listForm">
<!-- start goods type list -->
<div class="list-div" id="listDiv">

	<table width="100%" cellpadding="3" cellspacing="1" id="listTable">
		<tbody>
			<tr>
				<th>商品类型名称</th>
				<th>属性分组</th>
				<th>属性数</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
  <?php foreach($types as $val):?>
			<tr>
				<td class="first-cell"><span onclick="javascript:listTable.edit(this, 'edit_type_name', 1)"><?php echo $val['type_name']?></span></td>
				<td></td>
				<td align="right">12</td>
				<td align="center"><img src="images/yes.gif"></td>
				<td align="center">
				  <a href="<?php echo site_url('admin/attribute/show')?>" title="属性列表">属性列表</a> |
				  <a href="<?php echo site_url('admin/goodstype/edit').'/'.$val['type_id']?>" title="编辑">编辑</a> |
				  <a href="<?php echo site_url('admin/goodstype/del').'/'.$val['type_id']?>" onclick="return confirm('您确定要删除选定的商品类型吗？')" title="移除">移除</a>
				</td>
			</tr>
  <?php endforeach;?>
     
      
      <tr>
      <td align="center" nowrap="true" colspan="6" style="background-color: rgb(255, 255, 255);">
            <!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->
            <div id="turn-page">
            <!--分页导航信息展示-->
            <?php echo $pageinfo;?>
      </div>
      </td>
    </tr>
  </tbody></table>

</div>
<!-- end goods type list -->
</form>

<div id="footer">
	版权所有 &copy; 2006-2013 传智播客 - PHP培训 - </div>
</div>

</body>
</html>